<?php
class Login_model extends CI_Model {

      function __construct() {
        // Call the Model constructor
        parent::__construct();
        
    }
    
    public function checkuser($user,$pass){
        
       $query = $this->db->query("select * from users where alias='".$user."' and password='".$pass."'");
       $rs = $query->result();
             
       return $rs;
      
    } 
    
            
}
?>
